<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Strict//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title></title>
    {$QPath}
    <link rel="stylesheet" type="text/css" href="__TMPL__../Admin/Public/base.css"/>
    <script type="text/javascript" src="__TMPL__../Admin/Public/mootools.js"></script>
    <script type="text/javascript" src="__TMPL__../Admin/Public/base.js"></script>
    <style type="text/css">
        #welcome{
            padding:20px 20px 10px;
            font-size:16px;
            font-weight:bold;
            color:#0040C5;
        }
        #tips{
            padding:0 20px;
        }
        #tips li{
            height:22px;
            line-height:22px;
            padding:4px 0;
        }
        #lastLogin label{ padding:0 16px 0 0; font-family:"Comic Sans MS";}
    </style>
</head>
<body>
    <div id="container">
        <p id="welcome">
            <script type="text/javascript">
                var hour = (new Date()).getHours();
                if (hour < 4) {hello = "夜深了，";}
                else if (hour < 7) {hello = "早安，";}
                else if (hour < 9) {hello = "早上好，"; }
                else if (hour < 12) {hello = "上午好，";}
                else if (hour < 14) {hello = "中午好，";}
                else if (hour < 17) {hello = "下午好，";}
                else {hello = "晚上好，";}
                document.write(hello);
            </script>
            {$userVo['realname']}
        </p>
        <ul id="tips">
            <present name="userVo['DATE']">
            <li id="lastLogin">
            上次登录于<label>{$userVo['DATE']|date='Y-m-d H:i:s',###}</label>IP是<label>{$userVo['IP']}</label>
            </li>
            </present>
        </ul>
    </div>
</body>
</html>